package com.shph.validation.rule.impl;

import com.shph.validation.rule.IRule;

/**
 * 字符串非空校验实现类
 */
public class StringEmptyRule implements IRule<String> {
    @Override
    public boolean test(String value, String refValue) {
        if (value == null || value.length() < 1) {
            return true;
        }
        return false;
    }
}
